package com.service.impl;

import cn.hutool.json.JSONUtil;
import com.mapper.entity.StockCirculationDetailOrg;
import com.util.DateUtil;
import org.springframework.stereotype.Component;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.service
 * @date:2021/9/16
 */

@Component
public class StockOrgWrapper {

    public StockCirculationDetailOrg wrapper(String line) {
        StockCirculationDetailOrg org = JSONUtil.toBean(line, StockCirculationDetailOrg.class);
        org.setTime(DateUtil.StrToDate(org.get_operate_time()));
        return org;
    }

}
